package com.p2p.base.model;

import java.io.Serializable;
import java.util.Date;

public class P2PRecharge implements Serializable {

	private static final long serialVersionUID = -2725940495942751700L;

	private	Long	id;
	
	private String 	uid;
	
	private Long 	aid;
	
	private String	type;
	
	private String	tradeNo;
	
	private String	tradeAccount;
	
	private Money	money = new Money();
	
	private Double 	fee;
	
	private String	remark;
	
	private String	aremark;
	
	private Long	addTime;
	
	private Long	okTime;

	private String	addIp;
	
	private Long	upTime;
	
	private String	upIp;
	
	/**
	 * 状态:1-失败,2-无效,11-充值中,12-待确认,21-充值成功
	 */
	private Integer	status;
	
	private String outTransNo;

	public enum Status{
		/**
		 * 失败
		 */
		FAILURE(1),
		/**
		 * 无效
		 */
		INVALID(2),
		/**
		 * 充值中
		 */
		RECHARGEING(11),
		/**
		 * 待确认
		 */
		CONFIRMING(12),
		/**
		 * 充值成功
		 */
		SUCCESS(21),
		;
		private int status;
		
		private Status(int status){
			this.status = status;
		}
		
		public int getStatus() {
			return status;
		}
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUid() {
		return uid;
	}

	public void setUid(String uid) {
		this.uid = uid;
	}

	public Long getAid() {
		return aid;
	}

	public void setAid(Long aid) {
		this.aid = aid;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getTradeNo() {
		return tradeNo;
	}

	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}

	public String getTradeAccount() {
		return tradeAccount;
	}

	public void setTradeAccount(String tradeAccount) {
		this.tradeAccount = tradeAccount;
	}

	public Money getMoney() {
		return money;
	}

	public void setMoney(Money money) {
		this.money = money;
	}

	public Double getFee() {
		return fee;
	}

	public void setFee(Double fee) {
		this.fee = fee;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getAremark() {
		return aremark;
	}

	public void setAremark(String aremark) {
		this.aremark = aremark;
	}

	public String getAddIp() {
		return addIp;
	}

	public void setAddIp(String addIp) {
		this.addIp = addIp;
	}

	public Long getAddTime() {
		return addTime;
	}

	public void setAddTime(Long addTime) {
		this.addTime = addTime;
	}

	public Long getOkTime() {
		return okTime;
	}

	public void setOkTime(Long okTime) {
		this.okTime = okTime;
	}

	public Long getUpTime() {
		return upTime;
	}

	public void setUpTime(Long upTime) {
		this.upTime = upTime;
	}

	public String getUpIp() {
		return upIp;
	}

	public void setUpIp(String upIp) {
		this.upIp = upIp;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getOutTransNo() {
		return outTransNo;
	}

	public void setOutTransNo(String outTransNo) {
		this.outTransNo = outTransNo;
	}

	
	
}
